Skip to content

feat(feedback): persist submissions to feedback table#21

Open
level09 wants to merge 1 commit into
mainfrom
fix/feedback-persist
Open

feat(feedback): persist submissions to feedback table#21
level09 wants to merge 1 commit into
mainfrom
fix/feedback-persist

Conversation

@level09

@level09 level09 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Wires the feedback form's POST handler to write validated submissions into the existing feedback table. Until now the route validated input and returned the success partial but discarded the submission (# TODO: persist).

  • INSERT INTO feedback (rating, comment, email) after validation, mirroring the get_db pattern used by the search/document routes
  • Covers both EN and AR (same route and form; only displayed strings differ)
  • No UI changes

Verified: valid submission returns 200 and persists a row; invalid (missing comment / bad email) returns 422 and writes nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant